package com.faner.fast.upms.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.faner.fast.csv.annotation.ResponseCsv;
import com.faner.fast.excel.annotation.ResponseExcel;
import com.faner.fast.excel.kit.ExcelRow;
import lombok.Data;

/**
 * description: FileBO
 * date: 2020/11/26 17:08
 * author: faner
 */
@ResponseExcel(name = "文件",sheet = "文件")
@Data
public class FileExcelBO extends ExcelRow {

    @ResponseCsv(title = "路径",order = 1)
    @ExcelProperty(value = "路径")
    private String path;
    /**
     * LOCAL REMOTE
     */
    @ResponseCsv(title = "类型",order = 1)
    @ExcelProperty(value = "类型")
    private String type;
    @ResponseCsv(title = "名称",order = 1)
    @ExcelProperty(value = "名称")
    private String name;
    @ResponseCsv(title = "扩展",order = 1)
    @ExcelProperty(value = "扩展")
    private String extension;
    @ResponseCsv(title = "大小",order = 1)
    @ExcelProperty(value = "大小")
    private Integer size;

    /**
     * md5值，防止上传重复文件
     */
    @ExcelProperty(value = "MD5")
    @ResponseCsv(title = "MD5",order = 1)
    private String md5;
}

